# dict
phonebook = {
    "alice": '123',
    "beth": "12132",
}
print(phonebook, type(phonebook))  # {'alice': '123', 'beth': '12132'} <class 'dict'>
print(phonebook['alice'])  # 123

# list->dict
items = [("name", "gumby"), ("age", 12)]
d = dict(items)
print(d)  # {'name': 'gumby', 'age': 12}
print(d['age'])  # 12

#
d = dict(name="w", age=12)
print(d)  # {'name': 'w', 'age': 12}
